database implementation using PHP and MYSQL