Although there's no reason why you shouldn't be able to do this, be aware that each time the component that links to the database expires and needs to be regenerated you will be making a new connection to your database. This might cause slowdowns or access issues, depending on how you make the connection or how you access the data base, so just keep that in mind.
Long term I wish there were either A) custom components that weren't 100% reset each time, so a connection could be maintained or B) there was a way to make certain components, or certain parts of components, persistent and not completely reset each time.