Removed unnecessary return code, added pause in entrypoint script to wait for db to boot up.