Added a test program for database