increase size of db, memset memory after allocation