[FIX] Python entry point files
[IMP] Exception handling for database connections