new databse implementation.