did some stuff with db and sql