added BASIC db stuff