Flesh out initial functionality

add command loop
add serial autodetect
add setup for sqlite db