started working on db stuff