updated libraries, fixed some db stuff