Added some PHPDocs and code updates for database settings