added require_once to get file database.php
created a new connection for post