Changed buffer size
Database creation function added