Yes, it can be achieved.

Having said that, would that mean that conn.sql script would have the account and password hardcoded? the same for all databases?
That's a very, very bad idea.