basic cleaning, methods visibility
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
Move function to subs.
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
moved function to associated subs.
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
let's use existing functions.
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
let's use existing code, one function for the same job is enough.
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
moved db queries to subs. 
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
don't foget the docs, not very much but better than nothing...
Signed-off-by:Thorsten Eurich <thorsten@eurich.de>
Merge pull request #325 from eurich/manage_news

Manage news refactoring