add sqlite db schema
add server
onmessage in correct scope