added classes to database files
Added pagination navigation