Moved db setup
fixed db synching