log connected database
fixed paginate links