Database is almost completely functional

Working on improved search function