change dev to local db, fix tests