started database parsing code