Modified ownership and permission
Add PostgreSQL support