testdb in main