changed database to fit new implementation
updated api docs