             else
                 v = {}
                 #console.log("DATA ON LOAD:", syncdb.select())
-                db = syncdb.select()
                 for x in syncdb.select()
                     if x.history
                         x.history = immutable.Stack(immutable.fromJS(x.history))

                show_edit_input : false
        else if e.keyCode==13 and not e.shiftKey # 13: enter key
            mesg = @refs.editedMessage.getValue()
            if mesg == @newest_content()
                @setState(show_edit_input:false)
            else if mesg.length? and mesg.trim().length >= 1
                @props.actions.send_edit(@props.message, mesg)
                @setState(show_edit_input:false)

    focus_endpoint: (e) ->
        val = e.target.value

                      file_path={@props.file_path} />
        </div>

    # TODO: Make this a codemirror input
    render_input: ->
        <div>
            <Input
